package com.logic.meeting.core.util.dimen;

import android.content.res.Resources;
import android.util.DisplayMetrics;

import com.logic.meeting.core.app.Atmos;

/**
 * @ClassName: DimenUtil
 * @Description: java类作用描述
 * @Author: Jove.Nan
 * @Date: 2019/2/25 2:48 PM
 */
public class DimenUtil {

    public static int getScreenWidth() {
        final Resources resources = Atmos.getApplicationContext().getResources();
        final DisplayMetrics dm = resources.getDisplayMetrics();

        return dm.widthPixels;
    }

    public static int getScreenHeight() {
        final Resources resources = Atmos.getApplicationContext().getResources();
        final DisplayMetrics dm = resources.getDisplayMetrics();

        return dm.heightPixels;
    }

}
